﻿<UserControl x:Class="HtmlUtilities.UITest.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:UITest="clr-namespace:HtmlUtilities.UITest" 
    Width="800" Height="300">
    <UserControl.Resources>
        <UITest:MainPageViewModel x:Key="ViewModel" />
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White" DataContext="{StaticResource ViewModel}">
        <Grid.RowDefinitions>
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150" />
            <ColumnDefinition Width="150" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        
        <TextBlock Text="Browser Information:" Grid.Row="0" Grid.Column="0" />
        <ComboBox Grid.Row="0" Grid.Column="1" SelectionChanged="CommandChanged" ItemsSource="{Binding BrowserCommands}" />
        <TextBlock Text="{Binding CommandResult}" Grid.Row="0" Grid.Column="2" Grid.RowSpan="5" Margin="10,0,0,0" />
        
        <TextBlock Text="Document:" Grid.Row="1" Grid.Column="0" />
        <ComboBox Grid.Row="1" Grid.Column="1" SelectionChanged="CommandChanged" ItemsSource="{Binding DocumentCommands}" />
        
        <TextBlock Text="Window:" Grid.Row="2" Grid.Column="0" />
        <ComboBox Grid.Row="2" Grid.Column="1" SelectionChanged="CommandChanged" ItemsSource="{Binding WindowCommands}" />
        
        <TextBlock Text="Element:" Grid.Row="3" Grid.Column="0" />
        <ComboBox Grid.Row="3" Grid.Column="1" SelectionChanged="CommandChanged" ItemsSource="{Binding ElementCommands}" />
        
        <TextBlock Text="HtmlObject:" Grid.Row="4" Grid.Column="0" />
        <ComboBox Grid.Row="4" Grid.Column="1" SelectionChanged="CommandChanged" ItemsSource="{Binding HtmlObjectCommands}" />
        
        <TextBlock Text="ScriptObject:" Grid.Row="5" Grid.Column="0" />
        <ComboBox Grid.Row="5" Grid.Column="1" SelectionChanged="CommandChanged" ItemsSource="{Binding ScriptObjectCommands}" />
        
        <TextBlock Text="Page:" Grid.Row="6" Grid.Column="0" />
        <ComboBox Grid.Row="6" Grid.Column="1" SelectionChanged="CommandChanged" ItemsSource="{Binding PageCommands}" />
        
        <TextBlock Text="TestDiv Children:" Grid.Row="7" Grid.Column="0" />
        <ComboBox Grid.Row="7" Grid.Column="1" SelectionChanged="CommandChanged" ItemsSource="{Binding ScriptObjectCollectionCommands}" />
    </Grid>
</UserControl>
